/*
 * UserManager.hpp
 *
 *  Created on: Jan 24, 2015
 *      Author: wasp
 */


class ApplicationUI;
namespace de
{
    namespace heimweghelden
    {
        namespace user
        {
            class UserManager : public QObject
            {
                Q_OBJECT
            public:
                static const QString PUBKEY;
                static const QString USERID;

                static UserManager* _instance;
                static UserManager* getInstance(QObject* parent = NULL);
                static void drop();
                void set(QString k, QString value);
                QString get(QString k);
            private:
                UserManager(QObject* parent = NULL);
                virtual ~UserManager();
                ApplicationUI* app;
                QHash<QString, QString>* _data;
                QString _userid;
            };

        } /* namespace user */
    } /* namespace heimweghelden */
} /* namespace de */

